<%--
  Created by IntelliJ IDEA.
  User: empty
  Date: 2025/5/22
  Time: 21:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
  <title>健康信息管理</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Segoe UI', sans-serif;
    }

    body {
      background: linear-gradient(135deg, #f0f7ff 0%, #e0ecff 100%);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      padding: 20px;
    }

    .header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 30px;
      padding: 15px 0;
      border-bottom: 1px solid #d0e0ff;
    }

    .header h1 {
      color: #2c5282;
      font-size: 28px;
      font-weight: 600;
    }

    #logout button {
      background-color: #6c757d;
      color: white;
      border: none;
      padding: 10px 18px;
      border-radius: 6px;
      cursor: pointer;
      transition: background-color 0.3s;
      font-size: 14px;
      letter-spacing: 0.5px;
    }

    #logout button:hover {
      background-color: #545b62;
    }

    #app {
      background: white;
      border-radius: 12px;
      box-shadow: 0 8px 24px rgba(50, 100, 180, 0.1);
      padding: 35px 40px;
      width: 100%;
      max-width: 600px;
      margin: 30px auto;
      transition: transform 0.3s ease, box-shadow 0.3s;
    }

    #app:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 32px rgba(50, 100, 180, 0.15);
    }

    #app h2 {
      color: #2c5282;
      font-size: 24px;
      margin-bottom: 28px;
      padding-left: 12px;
      border-left: 4px solid #4a89dc;
    }

    .action-buttons {
      display: grid;
      grid-gap: 18px;
    }

    .action-buttons form button {
      width: 100%;
      padding: 16px 24px;
      border: none;
      border-radius: 8px;
      font-size: 16px;
      cursor: pointer;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 500;
      letter-spacing: 0.3px;
    }

    .action-buttons form button i {
      margin-right: 12px;
      font-size: 20px;
    }

    .action-buttons form:nth-child(1) button {
      background-color: #4a89dc;
      color: white;
      box-shadow: 0 2px 8px rgba(74, 137, 220, 0.2);
    }

    .action-buttons form:nth-child(1) button:hover {
      background-color: #3672c4;
      box-shadow: 0 4px 12px rgba(74, 137, 220, 0.3);
    }

    .action-buttons form:nth-child(2) button {
      background-color: #e74c3c;
      color: white;
      box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
    }

    .action-buttons form:nth-child(2) button:hover {
      background-color: #c0392b;
      box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    }

    .action-buttons form:nth-child(3) button {
      background-color: #2ecc71;
      color: white;
      box-shadow: 0 2px 8px rgba(46, 204, 113, 0.2);
    }

    .action-buttons form:nth-child(3) button:hover {
      background-color: #27ae60;
      box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
    }

    .action-buttons form button:hover {
      transform: translateY(-2px);
    }

    .action-buttons form button:active {
      transform: translateY(0);
      box-shadow: none;
    }
  </style>
</head>
<body>
<div class="header">
  <h1>健康信息管理系统</h1>
  <div id="logout">
    <form action="user-community" name="action" method="post">
      <input type="hidden" name="action" value="returnUser">
      <button type="submit">返回管理员首页</button>
    </form>
  </div>
</div>

<div id="app">
  <h2>健康信息管理</h2>
  <div class="action-buttons">
    <form action="healthInformation" method="post">
      <input type="hidden" name="action" value="addHealthInformation">
      <button type="submit"><i>➕</i> 登记健康信息</button>
    </form>
    <form action="healthInformation" method="post">
      <input type="hidden" name="action" value="deleteInformation">
      <button type="submit"><i>❌</i> 删除健康记录</button>
    </form>
    <form action="healthInformation" method="post">
      <input type="hidden" name="action" value="findHealthInformation">
      <button type="submit"><i>🔍</i> 查找健康信息</button>
    </form>
    <form action="findAllHealthInformation" method="post">
      <input type="hidden" name="action" value="findAllHealthInformation">
      <button type="submit">所有健康信息</button>
    </form>
  </div>
</div>
</body>
</html>
    
